/**
 *
 */

package lohmar.ashar.android.batterySaver.profile;

import lohmar.ashar.android.batterySaver.R;

/**
 * @author Mihai HARAS (Lohmar ASHAR) 2011
 */
public class Profile {
    private String  name;
    private boolean enabled       = false;
    private int     iconId        = R.drawable.no_icon;
    private int     enabledIconId = R.drawable.no_icon_sel;

    public Profile(String name) {
        this.name = name;
    }

    public Profile(String name, int iconId, int enabledIconId) {
        this.name = name;
        this.iconId = iconId;
        this.enabledIconId = enabledIconId;
    }

    public int getEnabledIconId() {
        return enabledIconId;
    }

    public int getIconId() {
        return iconId;
    }

    public String getName() {
        return name;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public void setEnabledIconId(int enabledIconId) {
        this.enabledIconId = enabledIconId;
    }

    public void setIconId(int iconId) {
        this.iconId = iconId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void toggleState() {
        enabled = !enabled;
        System.out.println("enabled = " + enabled);
    }

}
